home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / modules / nessus-2.2.8.mo / usr / lib / nessus / plugins / mandrake_MDKSA-2002-066.nasl < prev    next >
Text File  |  2005-01-14  |  2KB  |  90 lines

  1. #
  2. # (C) Tenable Network Security
  3. #
  4. # This plugin text was extracted from Mandrake Linux Security Advisory MDKSA-2002:066
  5. #
  6.  
  7.  
  8. if ( ! defined_func("bn_random") ) exit(0);
  9. if(description)
  10. {
  11.  script_id(13967);
  12.  script_version ("$Revision: 1.2 $");
  13.  script_cve_id("CAN-2001-1267", "CAN-2002-0399");
  14.  
  15.  name["english"] = "MDKSA-2002:066: tar";
  16.  
  17.  script_name(english:name["english"]);
  18.  
  19.  desc["english"] = "
  20. The remote host is missing the patch for the advisory MDKSA-2002:066 (tar).
  21.  
  22.  
  23. A directory traversal vulnerability was discovered in GNU tar version 1.13.25
  24. and earlier that allows attackers to overwrite arbitrary files during extraction
  25. of the archive by using a '..' (dot dot) in an extracted filename.
  26.  
  27.  
  28. Solution : http://www.mandrakesoft.com/security/advisories?name=MDKSA-2002:066
  29. Risk factor : High";
  30.  
  31.  
  32.  
  33.  script_description(english:desc["english"]);
  34.  
  35.  summary["english"] = "Check for the version of the tar package";
  36.  script_summary(english:summary["english"]);
  37.  
  38.  script_category(ACT_GATHER_INFO);
  39.  
  40.  script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
  41.  family["english"] = "Mandrake Local Security Checks";
  42.  script_family(english:family["english"]);
  43.  
  44.  script_dependencies("ssh_get_info.nasl");
  45.  script_require_keys("Host/Mandrake/rpm-list");
  46.  exit(0);
  47. }
  48.  
  49. include("rpm.inc");
  50. if ( rpm_check( reference:"tar-1.13.25-6.2mdk", release:"MDK7.1", yank:"mdk") )
  51. {
  52.  security_hole(0);
  53.  exit(0);
  54. }
  55. if ( rpm_check( reference:"tar-1.13.25-6.2mdk", release:"MDK7.2", yank:"mdk") )
  56. {
  57.  security_hole(0);
  58.  exit(0);
  59. }
  60. if ( rpm_check( reference:"tar-1.13.25-6.2mdk", release:"MDK8.0", yank:"mdk") )
  61. {
  62.  security_hole(0);
  63.  exit(0);
  64. }
  65. if ( rpm_check( reference:"tar-1.13.25-6.2mdk", release:"MDK8.1", yank:"mdk") )
  66. {
  67.  security_hole(0);
  68.  exit(0);
  69. }
  70. if ( rpm_check( reference:"tar-1.13.25-6.2mdk", release:"MDK8.2", yank:"mdk") )
  71. {
  72.  security_hole(0);
  73.  exit(0);
  74. }
  75. if ( rpm_check( reference:"tar-1.13.25-6.2mdk", release:"MDK9.0", yank:"mdk") )
  76. {
  77.  security_hole(0);
  78.  exit(0);
  79. }
  80. if (rpm_exists(rpm:"tar-", release:"MDK7.1")
  81.  || rpm_exists(rpm:"tar-", release:"MDK7.2")
  82.  || rpm_exists(rpm:"tar-", release:"MDK8.0")
  83.  || rpm_exists(rpm:"tar-", release:"MDK8.1")
  84.  || rpm_exists(rpm:"tar-", release:"MDK8.2")
  85.  || rpm_exists(rpm:"tar-", release:"MDK9.0") )
  86. {
  87.  set_kb_item(name:"CAN-2001-1267", value:TRUE);
  88.  set_kb_item(name:"CAN-2002-0399", value:TRUE);
  89. }
  90.